package com.lottery.dao.qiuqiu.statisticsDao;

import com.lottery.entity.Agency;

import java.util.List;

/**
 * 渠道商表Dao接口
 */

public interface AgencyDao {
	/**
	 * 查询所有渠道商
	 */

	Agency selectAgency(String id);

	List<Agency> selectAllAgency();

	/**
	 * 增加渠道商
	 */
	void insertAgency(Agency agency);

	/**
	 * 修改渠道商
	 */
	void updateAgency(Agency agency);

	// 根据id查渠道商返水
	double selectIncomeById(int id);

	// 根据id查代理返水
	double selectDelIncomeById(int id);


	double selectDayCommission(int id);

	double selectTotalCommission(int id);

	Agency selectDelAgency(int id);

    Agency searchAgencyByUserId(int userId);

	List<Agency> selectAllProxy();

	void updateAgencyCommission(Agency agency);
}
